package com.rui.service.impl;

import com.rui.domain.DevelopmentLanguage;
import com.rui.domain.Frame;
import com.rui.mapper.FrameMapper;
import com.rui.service.FrameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("frameService")
public class FrameServiceImpl implements FrameService {

    @Autowired
    private FrameMapper frameMapper;

    @Override
    public List<Frame> findAll() {
        List<Frame> frames = frameMapper.selectByExample(null);
        if (frames!=null&&frames.size()>0) {
            return frames;
        }
        return null;
    }
}
